import request from '@/utils/request'

// 查询机场油库信息列表
export function listOildepot(query) {
  return request({
    url: '/ris/oildepot/list',
    method: 'get',
    params: query
  })
}

// 查询机场油库信息详细
export function getOildepot(oildepotid) {
  return request({
    url: '/ris/oildepot/' + oildepotid,
    method: 'get'
  })
}

// 新增机场油库信息
export function addOildepot(data) {
  return request({
    url: '/ris/oildepot',
    method: 'post',
    data: data
  })
}

// 修改机场油库信息
export function updateOildepot(data) {
  return request({
    url: '/ris/oildepot',
    method: 'put',
    data: data
  })
}

// 删除机场油库信息
export function delOildepot(oildepotid) {
  return request({
    url: '/ris/oildepot/' + oildepotid,
    method: 'delete'
  })
}
